package stores;

import java.sql.SQLException;
import java.util.List;

import workspace.Workspace;
import beans.Operator;

public interface OperatorStore {

	Operator loadOperatorByUsername(Workspace workspace, String felhasznaloNev,
			boolean isLogin) throws SQLException;

	Operator loadOperatorById(Workspace workspace, long userId)
			throws SQLException;

	Operator insertOperator(Workspace workspace, Operator newOperator)
			throws SQLException;

	Operator updateOperator(Workspace workspace, Operator updatedOperator)
			throws SQLException;

	boolean deleteOperator(Workspace workspace, long userId)
			throws SQLException;

	List<Operator> loadOperatorLista(Workspace workspace) throws SQLException;

}
